package cn.edu.just.firstjavaapp.l19;

import java.util.HashMap;
import java.util.Map;

public class MapDemo02 {
    public static void main(String[] args) {
        Map<String,Object> student = new HashMap<>(); //表示一个对象的信息
        student.put("No.","24221070122");
        student.put("Name","张三");
        student.put("Province","江苏");
        student.put("City","镇江");
        student.put("Tel","13376160004");
        student.put("Credit",3.5);
        System.out.println(student);
        Map<String,Object> student2 = new HashMap<>();
        student2.put("No.","24221070123");
        student2.put("Name","李四");
        student2.put("Province","浙江");
        student2.put("City","杭州");
        student2.put("Tel","13376160008");
        student2.put("Credit",3.4);
        System.out.println(student2);
    }
}
